<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Left</title>
<link type="text/css" href="../css/redmond/jquery-ui-1.7.custom.css" rel="stylesheet" />
<script type="text/javascript" src="../script/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../script/jquery-ui-1.7.custom.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        var autoHeightVar = false;
    	if ( $.browser.msie && $.browser.version == "6.0") {
    		autoHeightVar = true;
    	}
        $("#adminNavBar").accordion({
            active: false,
        	autoHeight: autoHeightVar,
        	collapsible: true,
            icons: {
                header: "ui-icon-circle-arrow-e",
                headerSelected: "ui-icon-circle-arrow-s"
            }
        });
        $("#unitNavBar").accordion({
        	active: false,
            autoHeight: autoHeightVar,
            collapsible: true,
            icons: {
                header: "ui-icon-circle-arrow-e",
                headerSelected: "ui-icon-circle-arrow-s"
            }
        });
        $("#expertNavBar").accordion({
        	active: false,
            autoHeight: autoHeightVar,
            collapsible: true,
            icons: {
                header: "ui-icon-circle-arrow-e",
                headerSelected: "ui-icon-circle-arrow-s"
            }
        });
        $("#planNavBar").accordion({
        	active: false,
            autoHeight: autoHeightVar,
            collapsible: true,
            icons: {
                header: "ui-icon-circle-arrow-e",
                headerSelected: "ui-icon-circle-arrow-s"
            }
        });
        $(".add_plan_link").click(function() {

            var mainFrameLocation = parent.MainFrame.location;
            
        	var currentUrl = mainFrameLocation.pathname.substr(mainFrameLocation.pathname.lastIndexOf("/") + 1);
            if (currentUrl == "Welcome.jsp") {
                return true;
            }
        	var linkUrl = $(this).attr("href");
        	linkUrl = linkUrl.substr(linkUrl.lastIndexOf("/") + 1);
        	if (currentUrl != linkUrl) {
                if ($("#tempDataSaver").val() != "success" && $("#dataEditWatcher").val() == "changed") {
                	if (!confirm("信息已修改，尚未保存，确定要不保存了?")) {
                        return false;
                    }
                }
        	} else {
            	return false;
        	}
        	$("#tempDataSaver").val("");
        	$("#dataEditWatcher").val("");
        });
    });
</script>
<style type="text/css">
    ul, li {
        list-style-type: none;
        padding-left: 0px;
        margin-left: 0px;
    }
</style>
</head>
<body>
<!-- 耕保司用户菜单开始 -->
<sec:authorize ifAllGranted="ROLE_ADMIN">
<div id="adminNavBar" style="padding: 0px; margin: 0px;">
<!--    <h3><a href="#">系统维护</a></h3>-->
<!--    <div>-->
<!--        <ul>-->
<!--            <li><a href="NoFunction.jsp" target="MainFrame">字典维护</a></li>-->
<!--            <li><a href="NoFunction.jsp" target="MainFrame">数据库备份</a></li>-->
<!--            <li><a href="NoFunction.jsp" target="MainFrame">数据库导入</a></li>-->
<!--            <li><a href="NoFunction.jsp" target="MainFrame">数据库导出</a></li>-->
<!--            <li><a href="NoFunction.jsp" target="MainFrame">数据库还原</a></li>-->
<!--            <li><a href="NoFunction.jsp" target="MainFrame">系统日志管理</a></li>-->
<!--            <li><a href="NoFunction.jsp" target="MainFrame">用户角色管理</a></li>-->
<!--        </ul>-->
<!--    </div>-->
<!--    <h3><a href="NoFunction.jsp">申报用户管理</a></h3>-->
<!--    <div>-->
<!--        <ul>-->
<!--            <li><a href="NoFunction.jsp" target="MainFrame">用户管理</a></li>-->
<!--            <li><a href="NoFunction.jsp" target="MainFrame">编制单位管理</a></li>-->
<!--        </ul>-->
<!--    </div>-->
	<h3><a href="#">审查方案</a></h3>
    <div>
        <ul>
            <li><a href="../plan/ListScPlan.html" target="MainFrame">待审查方案</a></li>
            <li><a href="../plan/ListScPassedPlan.html" target="MainFrame">已通过方案</a></li>
            <li><a href="../plan/ListScNopassedPlan.html" target="MainFrame">未通过方案</a></li>
        </ul>
    </div>
    <h3><a href="#">个人资料维护</a></h3>
    <div>
        <ul>
            <li><a href="../user/ModifyPassword.html" target="MainFrame">密码修改</a></li>
        </ul>
    </div>
</div>
</sec:authorize>
<!-- 耕保司用户菜单结束 -->
<!-- 中心用户菜单开始 -->
<sec:authorize ifAllGranted="ROLE_UNITADMIN">
<div id="unitNavBar" style="padding: 0px; margin: 0px;">
<!--    <h3><a href="#">添加方案</a></h3>-->
<!--    <div>-->
<!--        <input type="hidden" id="tempDataSaver" value="" />-->
<!--        <input type="hidden" id="dataEditWatcher" value="" />-->
<!--        <ul>-->
<!--            <li><a href="../plan/AddPlan_BasicInfo.html" class="add_plan_link" target="MainFrame">基本信息</a></li>-->
<!--            <li><a href="../plan/AddPlan_TDPHLX.html" class="add_plan_link" target="MainFrame">破坏类型</a></li>-->
<!--            <li><a href="../plan/AddPlan_SCXMGK.html" class="add_plan_link" target="MainFrame">生产项目概况</a></li>-->
<!--            <li><a href="../plan/AddPlan_YQFKMJ.html" class="add_plan_link" target="MainFrame">预期复垦面积</a></li>-->
<!--            <li><a href="../plan/AddPlan_TDLYXZ.html" class="add_plan_link" target="MainFrame">利用现状</a></li>-->
<!--            <li><a href="../plan/AddPlan_TDFKTZ.html" class="add_plan_link" target="MainFrame">复垦投资</a></li>-->
<!--            <li><a href="../plan/AddPlan_FAFJSC.html" class="add_plan_link" target="MainFrame">附件</a></li>-->
<!--            <li><a href="../plan/AddPlan_FABZDW.html" class="add_plan_link" target="MainFrame">编制单位</a></li>-->
<!--            <li><a href="../plan/AddPlan_TDDXTP.html" class="add_plan_link" target="MainFrame">典型图片</a></li>-->
<!--            <li><a href="../plan/SubmitPlan2.html" target="MainFrame">提交方案</a></li>-->
<!--            <li><a href="../plan/SubmitPlan.html" target="MainFrame">提交方案</a></li>-->
<!--        </ul>-->
<!--    </div>-->
    <h3><a href="#">方案管理</a></h3>
    <div>
        <ul>
            <li><a href="../plan/ListSubmittedPlan1.html" target="MainFrame">初审方案申报书</a></li>
            <li><a href="../plan/ListSubmittedPlan2.html" target="MainFrame">二审方案申报书</a></li>
            <li><a href="../plan/ListSubmittedPlan3.html" target="MainFrame">三审方案申报书</a></li>
            <li><a href="../plan/ListJudgedPlan.html" target="MainFrame">评审结束方案</a></li>
            <li><a href="../plan/ListAllPlan.html" target="MainFrame">方案档案管理</a></li>
        </ul>
    </div>
    <h3><a href="#">评审管理</a></h3>
    <div align="left">
        <ul>
            <li><a href="../plan/ListJudgedPlan.html" target="MainFrame">方案评审结果</a></li>
            <li><a href="../plan/ListNeedJudgePlan1.html" target="MainFrame">初审送审</a></li>
            <li><a href="../plan/ListNeedJudgePlan2.html" target="MainFrame">二审送审</a></li>
            <li><a href="../plan/ListNeedJudgePlan3.html" target="MainFrame">三审送审</a></li>
            <li><a href="../plan/ListJudgingPlan.html" target="MainFrame">评审中方案</a></li>
        </ul>
    </div>
    <h3><a href="#">审查结果</a></h3>
    <div align="left">
        <ul>
            <li><a href="../plan/ListJudgePassedPlan.html" target="MainFrame">审查中</a></li>
            <li><a href="../plan/ListScPassedPlan.html" target="MainFrame">审查通过方案</a></li>
            <li><a href="../plan/ListScNopassedPlan.html" target="MainFrame">审查不通过方案</a></li>
        </ul>
    </div>
    <h3><a href="#">专家管理</a></h3>
    <div>
        <ul>
            <li><a href="../expert/AddExpert.html" target="MainFrame">添加专家</a></li>
            <li><a href="../expert/ListExpert.html" target="MainFrame">专家管理</a></li>
            <li><a href="../expert/ListJudgingExpert.html" target="MainFrame">在审专家</a></li>
        </ul>
    </div>
<!--    <h3><a href="#">统计报表</a></h3>-->
<!--    <div>-->
<!--        <ul>-->
<!--            <li><a href="../statistic/PlanStatic.html" target="MainFrame">方案统计</a></li>-->
<!--            <li><a href="NoFunction.jsp" target="MainFrame">专家统计</a></li>-->
<!--            <li><a href="NoFunction.jsp" target="MainFrame">高级查询</a></li>-->
<!--        </ul>-->
<!--    </div>-->
    <h3><a href="#">申报用户管理</a></h3>
    <div>
        <ul>
            <li><a href="../user/AddDeclareUnit.html" target="MainFrame">添加编制单位</a></li>
            <li><a href="../user/ManageDeclareUnit.html" target="MainFrame">编制单位管理</a></li>
            <li><a href="../user/AddPlanUser.html" target="MainFrame">添加申报用户</a></li>
            <li><a href="../user/ManagePlanUser.html" target="MainFrame">申报用户管理</a></li>
        </ul>
    </div>
    <h3><a href="#">发布信息管理</a></h3>
    <div>
        <ul>
            <li><a href="../info/BulletinManage.html" target="MainFrame">通知公告管理</a></li>
            <li><a href="../info/DocManage.html" target="MainFrame">管理办法及文件</a></li>
        </ul>
    </div>
    <h3><a href="#">个人资料维护</a></h3>
    <div>
        <ul>
            <li><a href="../user/ModifyPassword.html" target="MainFrame">密码修改</a></li>
        </ul>
    </div>
</div>
</sec:authorize>
<!-- 中心用户菜单结束-->
<!-- 专家用户菜单开始 -->
<sec:authorize ifAllGranted="ROLE_EXPERTUSER">
<div id="expertNavBar" style="padding: 0px; margin: 0px;">
    <h3><a href="#">待评方案</a></h3>
    <div>
        <ul>
            <li><a href="../plan/ListOwnJudgingPlan.html" target="MainFrame">查看方案</a></li>
        </ul>
    </div>
    <h3><a href="#">个人资料维护</a></h3>
    <div>
        <ul>
<!--            <li><a href="NoFunction.jsp" target="MainFrame">修改基本信息</a></li>-->
            <li><a href="../user/ModifyPassword.html" target="MainFrame">密码修改</a></li>
        </ul>
    </div>
</div>
</sec:authorize>
<!-- 专家用户菜单结束 -->
<!-- 编制单位菜单开始 -->
<sec:authorize ifAllGranted="ROLE_PLANUSER">
<div id="planNavBar" style="padding: 0px; margin: 0px;">
<!--    <h3><a href="#">提交方案</a></h3>-->
<!--    <div>-->
<!--        <input type="hidden" id="tempDataSaver" value="" />-->
<!--        <input type="hidden" id="dataEditWatcher" value="" />-->
<!--        <ul>-->
<!--            <li><a href="../plan/AddPlan_BasicInfo.html" class="add_plan_link" target="MainFrame">基本信息</a></li>-->
<!--            <li><a href="../plan/AddPlan_TDPHLX.html" class="add_plan_link" target="MainFrame">破坏类型</a></li>-->
<!--            <li><a href="../plan/AddPlan_SCXMGK.html" class="add_plan_link" target="MainFrame">生产项目概况</a></li>-->
<!--            <li><a href="../plan/AddPlan_YQFKMJ.html" class="add_plan_link" target="MainFrame">预期复垦面积</a></li>-->
<!--            <li><a href="../plan/AddPlan_TDLYXZ.html" class="add_plan_link" target="MainFrame">利用现状</a></li>-->
<!--            <li><a href="../plan/AddPlan_TDFKTZ.html" class="add_plan_link" target="MainFrame">复垦投资</a></li>-->
<!--            <li><a href="../plan/AddPlan_FAFJSC.html" class="add_plan_link" target="MainFrame">附件</a></li>-->
<!--            <li><a href="../plan/AddPlan_FABZDW.html" class="add_plan_link" target="MainFrame">编制单位</a></li>-->
<!--            <li><a href="../plan/AddPlan_TDDXTP.html" class="add_plan_link" target="MainFrame">典型图片</a></li>-->
<!--            <s:if test="#session.userPlanId == null">-->
<!--            	<li><a href="../plan/SubmitPlan.html" target="MainFrame">添加方案</a></li>-->
<!--            </s:if>-->
<!--            <s:else>-->
<!--            	<li><a href="../plan/ModifyPlan.html" target="MainFrame">修改方案</a></li>-->
<!--            </s:else>-->
<!--        </ul>-->
<!--    </div>-->
    <h3><a href="#">方案管理</a></h3>
    <div>
        <ul>
            <li><a href="../plan/ListOwnPlan.html" target="MainFrame">方案列表</a></li>
        </ul>
    </div>
    <h3><a href="#">个人资料维护</a></h3>
    <div>
        <ul>
            <li><a href="../user/ModifyPassword.html" target="MainFrame">密码修改</a></li>
        </ul>
    </div>
</div>
</sec:authorize>
<!-- 编制单位菜单结束 -->
</body>
</html>